package browserUI
{
	import flash.events.Event;

	public class UICommandEvent extends Event
	{
		public static const NEW_TAB:String="newTab";
		public static const SELECT_TAB:String="selectTab";
		public static const CLOSE_TAB:String="closeTab";
		public static const CREATE_FAVOURITE:String="createFavourite";
		
		public function UICommandEvent(type:String,id:int=-1,detail:*=null)
		{
			super(type);
			this.id=id;
			this.detail=detail;
		}
		
		public override function clone():Event{
			return new UICommandEvent(type,id,detail);
		}
		
		public var id:int;
		public var detail:*;
	}
}